package org.jeecg.modules.yw.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("measure_appoint")
public class MeasureAppoint {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("contact_name")
    @NotBlank(message = "联系人姓名不能为空")
    private String contactName;

    @NotBlank(message = "预约联系人电话不能为空")
    @TableField("contact_phone")
    private String contactPhone;
    @TableField("enterPriseId")
    private String enterPriseId;
    @NotBlank(message = "预约地址不能为空")
    @TableField("contact_address")
    private String contactAddress;

    @NotBlank(message = "预约时间不能为空")
    @TableField("appointment_time")
    private String appointmentTime;
    @TableField("create_time")
    private String createTime;
    @NotBlank(message = "量尺不能为空")
    @TableField("measurement_area")
    private String measurementArea;
    @TableField("creator")
    private String creator;
    private Double mj;
    private Double je;
    @TableField(exist = false)
    private List<Rulerpaper> rulerpaperList;
}
